Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>
const grab = Main.pushModal(global.stage, {
actionMode: Shell.ActionMode.OVERVIEW,
});
- if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
- Main.popModal(grab);
- this.hide();
- return false;
- }
-
this._grab = grab;
this._modal = true;
}